package com.oldroid.apps.getit.ui.phone;

import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.util.Log;

import com.jakewharton.android.viewpagerindicator.TitlePageIndicator;
import com.jakewharton.android.viewpagerindicator.TitlePageIndicator.IndicatorStyle;
import com.oldroid.apps.getit.R;
import com.oldroid.apps.getit.ui.BaseMultiPaneActivity;
import com.oldroid.apps.getit.ui.adapter.ViewPagerTitleFragmentAdapter;
import com.oldroid.apps.getit.util.AnalyticsUtils;

public class DownloadsActivity extends BaseMultiPaneActivity {
	private static final String TAG = "DownloadsActivity";

	
	
	
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		AnalyticsUtils.getInstance(this).trackPageView("/Downloads");
		setContentView(R.layout.activity_tags);
		getActivityHelper().setupActionBar(getTitle(), 0);
		
		ViewPager pager = (ViewPager)findViewById(R.id.downloads_tags_pager);
		pager.setAdapter(new ViewPagerTitleFragmentAdapter(getSupportFragmentManager()));
		TitlePageIndicator indicator = (TitlePageIndicator)findViewById(R.id.downloads_tags_indicator);
		indicator.setViewPager(pager);
		
		indicator.setFooterIndicatorStyle(IndicatorStyle.Underline);
		indicator.setCurrentItem(1);
		indicator.setFooterIndicatorHeight(6f);
		
		
	}

	@Override
	protected void onPostCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onPostCreate(savedInstanceState);
		getActivityHelper().setupSubActivity();
	}
	
	
}